const systemDictionaries = {
  USERSTATUS: { 'NORMAL': '正常', 'LOCKED': '锁定', 'DISABLE': '禁用' },
  SEXSTATUS: { 'MAN': '男', 'WOMAN': '女', 'UNKNOWN': '未知' },
  USESTATUS: { 'NORMAL': '正常', 'STOP_USING': '停用' },
  SHOWSTATUS: { 'SHOW': '显示', 'HIDE': '隐藏' },
  ATTRTYPE: { 'SALES_ATTR': '销售属性', 'BASIC_ATTR': '基础属性' },
  WHETHER: { 'true': '是', 'false': '否' }
}
const state = {
  systemDictionaries
}

const mutations = {

}

const actions = {

}
const getters = {
  getSystemDictionaries: (state, getters) => (type, key) => {
    const temp = getters.getSystemDictionariesByType(type)
    return temp[key]
  },
  getSystemDictionariesByType: (state) => (stype) => {
    return state.systemDictionaries[stype]
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}

